package com.mgface.thymeleaf.eventbus.a2;

import com.google.common.eventbus.EventBus;

public class TestMultipleEvents {
	public static void main(String[] args) {
		EventBus eventBus = new EventBus("test");
		MultipleListener multiListener = new MultipleListener();
		eventBus.register(multiListener);

		eventBus.post(new Integer(300));
		eventBus.post(new Long(800882934));

		System.out.println("LastInteger:" + multiListener.getLastInteger());
		System.out.println("LastLong:" + multiListener.getLastLong());
	}
}
